!function(){"use strict";var e=function(){return e=Object.assign||function(e){for(var t,n=1,s=arguments.length;n0&&r[r.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]n)throw new TypeError;for(var s=Math.floor(Math.random()*(n+1-t))+t,r="",i=0;i2&&"string"==typeof e[2]&&e[2].length>0?e[2]:null)+"-disqus"}}catch(e){t=s.location.hostname}return 0===t.indexOf("www.")&&(t=t.replace("www.","")),t}(),m=!1,0!==Object.keys(D).length)return[3,5];(f=new URL("https://"+E+"/websiteconfig")).searchParams.set("bt_env",T.bt_env||"prod"),f.searchParams.set("o",I),f.searchParams.set("w",v),n.label=1;case 1:return n.trys.push([1,4,,5]),[4,fetch(f.toString())];case 2:if(!(b=n.sent()).ok)throw new Error;return[4,b.json()];case 3:return w=n.sent(),t.websiteID=w.tagData.w,t.contentEnabled=w.tagData.ce,t.mobileContentEnabled=w.tagData.me,t.widget=null!==(e=w.tagData.widget)&&void 0!==e&&e,[2,{siteInfo:t,bundleData:w.bundleData,rlSettings:w.messageWall,checksum:w.checksum}];case 4:return n.sent(),[3,5];case 5:if(v&&v in D)_=D[v],t.websiteID=null!==(r=_.w)&&void 0!==r?r:_.website_id,t.contentEnabled=null!==(i=_.ce)&&void 0!==i?i:_.content_enabled,t.mobileContentEnabled=null!==(a=_.me)&&void 0!==a?a:_.mobile_content_enabled,t.widget=null!==(c=_.widget)&&void 0!==c&&c,m=!0;else for(y in D)(v.indexOf(y.toLowerCase())>-1||s.location.hostname.indexOf(y.toLowerCase())>-1)&&(m=!0,_=D[y],t.websiteID=null!==(l=_.w)&&void 0!==l?l:_.website_id,t.contentEnabled=null!==(u=_.ce)&&void 0!==u?u:_.content_enabled,t.mobileContentEnabled=null!==(p=_.me)&&void 0!==p?p:_.mobile_content_enabled,t.widget=null!==(h=_.widget)&&void 0!==h&&h);if(m)return S=function(e){var t;return(null===(t=null==A?void 0:A.websites)||void 0===t?void 0:t[e])||(null==A?void 0:A.org)}(t.websiteID),[2,{siteInfo:t,rlSettings:S}];if(d(1)){if(O={domain:v,orgID:parseInt(I)},R=void 0,window.TextEncoder)R=(new window.TextEncoder).encode(JSON.stringify(O)).buffer;else{for(V=unescape(encodeURIComponent(JSON.stringify(O))),P=new Uint8Array(V.length),x=0;x2&&void 0!==arguments[2]?arguments[2]:""}`),this.name="TCModelError"}}class W{static DICT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";static REVERSE_DICT=new Map([["A",0],["B",1],["C",2],["D",3],["E",4],["F",5],["G",6],["H",7],["I",8],["J",9],["K",10],["L",11],["M",12],["N",13],["O",14],["P",15],["Q",16],["R",17],["S",18],["T",19],["U",20],["V",21],["W",22],["X",23],["Y",24],["Z",25],["a",26],["b",27],["c",28],["d",29],["e",30],["f",31],["g",32],["h",33],["i",34],["j",35],["k",36],["l",37],["m",38],["n",39],["o",40],["p",41],["q",42],["r",43],["s",44],["t",45],["u",46],["v",47],["w",48],["x",49],["y",50],["z",51],["0",52],["1",53],["2",54],["3",55],["4",56],["5",57],["6",58],["7",59],["8",60],["9",61],["-",62],["_",63]]);static BASIS=6;static LCM=24;static encode(e){if(!/^[0-1]+$/.test(e))throw new j("Invalid bitField");const t=e.length%this.LCM;e+=t?"0".repeat(this.LCM-t):"";let n="";for(let t=0;t{const n=this.deepClone(this[t]);void 0!==n&&(e[t]=n)})),e}deepClone(e){const t=typeof e;if("number"===t||"string"===t||"boolean"===t)return e;if(null!==e&&"object"===t){if("function"==typeof e.clone)return e.clone();if(e instanceof Date)return new Date(e.getTime());if(void 0!==e[Symbol.iterator]){const t=[];for(const n of e)t.push(this.deepClone(n));return e instanceof Array?t:new e.constructor(t)}{const t={};for(const n in e)e.hasOwnProperty(n)&&(t[n]=this.deepClone(e[n]));return t}}}}class J extends ${root=null;getRoot(){return this.root}isEmpty(){return!this.root}add(e){const t={value:e,left:null,right:null};let n;if(this.isEmpty())this.root=t;else for(n=this.root;;)if(en.value))break;if(null===n.right){n.right=t;break}n=n.right}}get(){const e=[];let t=this.root;for(;t;)if(t.left){let n=t.left;for(;n.right&&n.right!=t;)n=n.right;n.right==t?(n.right=null,e.push(t.value),t=t.right):(n.right=t,t=t.left)}else e.push(t.value),t=t.right;return e}contains(e){let t=!1,n=this.root;for(;n;){if(n.value===e){t=!0;break}e>n.value?n=n.right:e0&&void 0!==arguments[0]?arguments[0]:this.root;for(;t;)t.left?t=t.left:(e=t.value,t=null);return e}max(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.root;for(;t;)t.right?t=t.right:(e=t.value,t=null);return e}remove(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root,n=null,s="left";for(;t;)if(et.value)n=t,t=t.right,s="right";else{if(t.left||t.right)if(t.left)if(t.right){const e=this.min(t.right);this.remove(e,t.right),t.value=e}else n?n[s]=t.left:this.root=t.left;else n?n[s]=t.right:this.root=t.right;else n?n[s]=null:this.root=null;t=null}}static build(e){if(e&&0!==e.length){if(1===e.length){const t=new J;return t.add(e[0]),t}{const t=e.length>>1,n=new J;n.add(e[t]);const s=n.getRoot();if(s){if(t+10){const n=J.build(e.slice(0,t-1));s.left=n?n.getRoot():null}}return n}}return null}}class q{static langSet=new Set(["BG","CA","CS","DA","DE","EL","EN","ES","ET","FI","FR","HR","HU","IT","JA","LT","LV","MT","NL","NO","PL","PT","RO","RU","SK","SL","SV","TR","ZH"]);has(e){return q.langSet.has(e)}forEach(e){q.langSet.forEach(e)}get size(){return q.langSet.size}}class K{static cmpId="cmpId";static cmpVersion="cmpVersion";static consentLanguage="consentLanguage";static consentScreen="consentScreen";static created="created";static supportOOB="supportOOB";static isServiceSpecific="isServiceSpecific";static lastUpdated="lastUpdated";static numCustomPurposes="numCustomPurposes";static policyVersion="policyVersion";static publisherCountryCode="publisherCountryCode";static publisherCustomConsents="publisherCustomConsents";static publisherCustomLegitimateInterests="publisherCustomLegitimateInterests";static publisherLegitimateInterests="publisherLegitimateInterests";static publisherConsents="publisherConsents";static publisherRestrictions="publisherRestrictions";static purposeConsents="purposeConsents";static purposeLegitimateInterests="purposeLegitimateInterests";static purposeOneTreatment="purposeOneTreatment";static specialFeatureOptins="specialFeatureOptins";static useNonStandardStacks="useNonStandardStacks";static vendorConsents="vendorConsents";static vendorLegitimateInterests="vendorLegitimateInterests";static vendorListVersion="vendorListVersion";static vendorsAllowed="vendorsAllowed";static vendorsDisclosed="vendorsDisclosed";static version="version"}!function(e){e[e.NOT_ALLOWED=0]="NOT_ALLOWED",e[e.REQUIRE_CONSENT=1]="REQUIRE_CONSENT",e[e.REQUIRE_LI=2]="REQUIRE_LI"}(x||(x={}));class Q extends ${static hashSeparator="-";purposeId_;restrictionType;constructor(e,t){super(),void 0!==e&&(this.purposeId=e),void 0!==t&&(this.restrictionType=t)}static unHash(e){const t=e.split(this.hashSeparator),n=new Q;if(2!==t.length)throw new z("hash",e);return n.purposeId=parseInt(t[0],10),n.restrictionType=parseInt(t[1],10),n}get hash(){if(!this.isValid())throw new Error("cannot hash invalid PurposeRestriction");return`${this.purposeId}${Q.hashSeparator}${this.restrictionType}`}get purposeId(){return this.purposeId_}set purposeId(e){this.purposeId_=e}isValid(){return Number.isInteger(this.purposeId)&&this.purposeId>0&&(this.restrictionType===x.NOT_ALLOWED||this.restrictionType===x.REQUIRE_CONSENT||this.restrictionType===x.REQUIRE_LI)}isSameAs(e){return this.purposeId===e.purposeId&&this.restrictionType===e.restrictionType}}class Y extends ${bitLength=0;map=new Map;gvl_;has(e){return this.map.has(e)}isOkToHave(e,t,n){let s=!0;if(this.gvl?.vendors){const r=this.gvl.vendors[n];if(r)if(e===x.NOT_ALLOWED)s=r.legIntPurposes.includes(t)||r.purposes.includes(t);else if(r.flexiblePurposes.length)switch(e){case x.REQUIRE_CONSENT:s=r.flexiblePurposes.includes(t)&&r.legIntPurposes.includes(t);break;case x.REQUIRE_LI:s=r.flexiblePurposes.includes(t)&&r.purposes.includes(t)}else s=!1;else s=!1}return s}add(e,t){if(this.isOkToHave(t.restrictionType,t.purposeId,e)){const n=t.hash;this.has(n)||(this.map.set(n,new J),this.bitLength=0),this.map.get(n).add(e)}}restrictPurposeToLegalBasis(e){const t=this.gvl.vendorIds,n=e.hash,s=function(){let e;for(e of t);return e}(),r=[...Array(s).keys()].map((e=>e+1));for(let e=1;e<=s;e++)this.has(n)||(this.map.set(n,J.build(r)),this.bitLength=0),this.map.get(n).add(e)}getVendors(e){let t=[];if(e){const n=e.hash;this.has(n)&&(t=this.map.get(n).get())}else{const e=new Set;this.map.forEach((t=>{t.get().forEach((t=>{e.add(t)}))})),t=Array.from(e)}return t}getRestrictionType(e,t){let n;return this.getRestrictions(e).forEach((e=>{e.purposeId===t&&(void 0===n||n>e.restrictionType)&&(n=e.restrictionType)})),n}vendorHasRestriction(e,t){let n=!1;const s=this.getRestrictions(e);for(let e=0;e{e=Math.max(t.max(),e)})),e}getRestrictions(e){const t=[];return this.map.forEach(((n,s)=>{e?n.contains(e)&&t.push(Q.unHash(s)):t.push(Q.unHash(s))})),t}getPurposes(){const e=new Set;return this.map.forEach(((t,n)=>{e.add(Q.unHash(n).purposeId)})),Array.from(e)}remove(e,t){const n=t.hash,s=this.map.get(n);s&&(s.remove(e),s.isEmpty()&&(this.map.delete(n),this.bitLength=0))}set gvl(e){this.gvl_||(this.gvl_=e,this.map.forEach(((e,t)=>{const n=Q.unHash(t);e.get().forEach((t=>{this.isOkToHave(n.restrictionType,n.purposeId,t)||e.remove(t)}))})))}get gvl(){return this.gvl_}isEmpty(){return 0===this.map.size}get numRestrictions(){return this.map.size}}!function(e){e.COOKIE="cookie",e.WEB="web",e.APP="app"}(N||(N={})),function(e){e.CORE="core",e.VENDORS_DISCLOSED="vendorsDisclosed",e.VENDORS_ALLOWED="vendorsAllowed",e.PUBLISHER_TC="publisherTC"}(U||(U={}));class X{static ID_TO_KEY=[U.CORE,U.VENDORS_DISCLOSED,U.VENDORS_ALLOWED,U.PUBLISHER_TC];static KEY_TO_ID={[U.CORE]:0,[U.VENDORS_DISCLOSED]:1,[U.VENDORS_ALLOWED]:2,[U.PUBLISHER_TC]:3}}class Z extends ${bitLength=0;maxId_=0;set_=new Set;*[Symbol.iterator](){for(let e=1;e<=this.maxId;e++)yield[e,this.has(e)]}values(){return this.set_.values()}get maxId(){return this.maxId_}has(e){return this.set_.has(e)}unset(e){Array.isArray(e)?e.forEach((e=>this.unset(e))):"object"==typeof e?this.unset(Object.keys(e).map((e=>Number(e)))):(this.set_.delete(Number(e)),this.bitLength=0,e===this.maxId&&(this.maxId_=0,this.set_.forEach((e=>{this.maxId_=Math.max(this.maxId,e)}))))}isIntMap(e){let t="object"==typeof e;return t=t&&Object.keys(e).every((t=>{let n=Number.isInteger(parseInt(t,10));return n=n&&this.isValidNumber(e[t].id),n=n&&void 0!==e[t].name,n})),t}isValidNumber(e){return parseInt(e,10)>0}isSet(e){let t=!1;return e instanceof Set&&(t=Array.from(e).every(this.isValidNumber)),t}set(e){if(Array.isArray(e))e.forEach((e=>this.set(e)));else if(this.isSet(e))this.set(Array.from(e));else if(this.isIntMap(e))this.set(Object.keys(e).map((e=>Number(e))));else{if(!this.isValidNumber(e))throw new z("set()",e,"must be positive integer array, positive integer, Set, or IntMap");this.set_.add(e),this.maxId_=Math.max(this.maxId,e),this.bitLength=0}}empty(){this.set_=new Set}forEach(e){for(let t=1;t<=this.maxId;t++)e(this.has(t),t)}get size(){return this.set_.size}setAll(e){this.set(e)}}class ee{static[K.cmpId]=12;static[K.cmpVersion]=12;static[K.consentLanguage]=12;static[K.consentScreen]=6;static[K.created]=36;static[K.isServiceSpecific]=1;static[K.lastUpdated]=36;static[K.policyVersion]=6;static[K.publisherCountryCode]=12;static[K.publisherLegitimateInterests]=24;static[K.publisherConsents]=24;static[K.purposeConsents]=24;static[K.purposeLegitimateInterests]=24;static[K.purposeOneTreatment]=1;static[K.specialFeatureOptins]=12;static[K.useNonStandardStacks]=1;static[K.vendorListVersion]=12;static[K.version]=6;static anyBoolean=1;static encodingType=1;static maxId=16;static numCustomPurposes=6;static numEntries=12;static numRestrictions=12;static purposeId=6;static restrictionType=2;static segmentType=3;static singleOrRange=1;static vendorId=16}class te{static encode(e){return String(Number(e))}static decode(e){return"1"===e}}class ne{static encode(e,t){let n;if("string"==typeof e&&(e=parseInt(e,10)),n=e.toString(2),n.length>t||e<0)throw new j(`${e} too large to encode into ${t}`);return n.length25||s<0||s>25)throw new j(`invalid language code: ${e}`);if(t%2==1)throw new j(`numBits must be even, ${t} is not valid`);t/=2;return ne.encode(n,t)+ne.encode(s,t)}static decode(e,t){let n;if(t!==e.length||e.length%2)throw new H("invalid bit length for language");{const t=65,s=e.length/2,r=ne.decode(e.slice(0,s),s)+t,i=ne.decode(e.slice(s),s)+t;n=String.fromCharCode(r)+String.fromCharCode(i)}return n}}class oe{static encode(e){let t=ne.encode(e.numRestrictions,ee.numRestrictions);return e.isEmpty()||e.getRestrictions().forEach((n=>{t+=ne.encode(n.purposeId,ee.purposeId),t+=ne.encode(n.restrictionType,ee.restrictionType);const s=e.getVendors(n),r=s.length;let i=0,o=0,a="";for(let t=0;t{for(;++e<=c&&!l.has(e););return e};if(t===r-1||s[t+1]>u(n)){const e=!(n===o);a+=te.encode(e),a+=ne.encode(o,ee.vendorId),e&&(a+=ne.encode(n,ee.vendorId)),o=0}}t+=ne.encode(i,ee.numEntries),t+=a})),t}static decode(e){let t=0;const n=new Y,s=ne.decode(e.substr(t,ee.numRestrictions),ee.numRestrictions);t+=ee.numRestrictions;for(let r=0;r{if(i+=te.encode(r),n=e.maxId>c&&l{const t=1===e.length;n+=te.encode(!t),n+=ne.encode(e[0],ee.vendorId),t||(n+=ne.encode(e[1],ee.vendorId))})),n}}function ce(){return{[K.version]:ne,[K.created]:se,[K.lastUpdated]:se,[K.cmpId]:ne,[K.cmpVersion]:ne,[K.consentScreen]:ne,[K.consentLanguage]:ie,[K.vendorListVersion]:ne,[K.policyVersion]:ne,[K.isServiceSpecific]:te,[K.useNonStandardStacks]:te,[K.specialFeatureOptins]:re,[K.purposeConsents]:re,[K.purposeLegitimateInterests]:re,[K.purposeOneTreatment]:te,[K.publisherCountryCode]:ie,[K.vendorConsents]:ae,[K.vendorLegitimateInterests]:ae,[K.publisherRestrictions]:oe,segmentType:ne,[K.vendorsDisclosed]:ae,[K.vendorsAllowed]:ae,[K.publisherConsents]:re,[K.publisherLegitimateInterests]:re,[K.numCustomPurposes]:ne,[K.publisherCustomConsents]:re,[K.publisherCustomLegitimateInterests]:re}}class le{1={[U.CORE]:[K.version,K.created,K.lastUpdated,K.cmpId,K.cmpVersion,K.consentScreen,K.consentLanguage,K.vendorListVersion,K.purposeConsents,K.vendorConsents]};2={[U.CORE]:[K.version,K.created,K.lastUpdated,K.cmpId,K.cmpVersion,K.consentScreen,K.consentLanguage,K.vendorListVersion,K.policyVersion,K.isServiceSpecific,K.useNonStandardStacks,K.specialFeatureOptins,K.purposeConsents,K.purposeLegitimateInterests,K.purposeOneTreatment,K.publisherCountryCode,K.vendorConsents,K.vendorLegitimateInterests,K.publisherRestrictions],[U.PUBLISHER_TC]:[K.publisherConsents,K.publisherLegitimateInterests,K.numCustomPurposes,K.publisherCustomConsents,K.publisherCustomLegitimateInterests],[U.VENDORS_ALLOWED]:[K.vendorsAllowed],[U.VENDORS_DISCLOSED]:[K.vendorsDisclosed]}}class ue{1=[U.CORE];2=[U.CORE];constructor(e,t){if(2===e.version)if(e.isServiceSpecific)this[2].push(U.PUBLISHER_TC);else{const n=!(!t||!t.isForVendors);n&&!0!==e[K.supportOOB]||this[2].push(U.VENDORS_DISCLOSED),n&&(e[K.supportOOB]&&e[K.vendorsAllowed].size>0&&this[2].push(U.VENDORS_ALLOWED),this[2].push(U.PUBLISHER_TC))}}}class de{static fieldSequence=new le;static encode(e,t){let n;try{n=this.fieldSequence[String(e.version)][t]}catch(n){throw new j(`Unable to encode version: ${e.version}, segment: ${t}`)}let s="";t!==U.CORE&&(s=ne.encode(X.KEY_TO_ID[t],ee.segmentType));const r=ce();return n.forEach((n=>{const i=e[n],o=r[n];let a=ee[n];void 0===a&&this.isPublisherCustom(n)&&(a=Number(e[K.numCustomPurposes]));try{s+=o.encode(i,a)}catch(e){throw new j(`Error encoding ${t}->${n}: ${e.message}`)}})),W.encode(s)}static decode(e,t,n){const s=W.decode(e);let r=0;n===U.CORE&&(t.version=ne.decode(s.substr(r,ee[K.version]),ee[K.version])),n!==U.CORE&&(r+=ee.segmentType);const i=this.fieldSequence[String(t.version)][n],o=ce();return i.forEach((e=>{const n=o[e];let i=ee[e];if(void 0===i&&this.isPublisherCustom(e)&&(i=Number(t[K.numCustomPurposes])),0!==i){const o=s.substr(r,i);if(t[e]=n===ae?n.decode(o,t.version):n.decode(o,i),Number.isInteger(i))r+=i;else{if(!Number.isInteger(t[e].bitLength))throw new H(e);r+=t[e].bitLength}}})),t}static isPublisherCustom(e){return 0===e.indexOf("publisherCustom")}}class pe{static processor=[e=>e,(e,t)=>{e.publisherRestrictions.gvl=t,e.purposeLegitimateInterests.unset(1);const n=new Map;return n.set("legIntPurposes",e.vendorLegitimateInterests),n.set("purposes",e.vendorConsents),n.forEach(((n,s)=>{n.forEach(((r,i)=>{if(r){const r=t.vendors[i];if(!r||r.deletedDate)n.unset(i);else if(0===r[s].length)if("legIntPurposes"===s&&0===r.purposes.length&&0===r.legIntPurposes.length&&r.specialPurposes.length>0);else if(e.isServiceSpecific)if(0===r.flexiblePurposes.length)n.unset(i);else{const t=e.publisherRestrictions.getRestrictions(i);let r=!1;for(let e=0,n=t.length;e0&&t?.version<=this.processor.length?e.version=t.version:e.version=this.processor.length;const s=e.version-1;if(!this.processor[s])throw new j(`Invalid version: ${e.version}`);return this.processor[s](e,n)}}class he{static absCall(e,t,n,s){return new Promise(((r,i)=>{const o=new XMLHttpRequest;o.withCredentials=n,o.addEventListener("load",(()=>{if(o.readyState==XMLHttpRequest.DONE)if(o.status>=200&&o.status<300){let e=o.response;if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}r(e)}else i(new Error(`HTTP Status: ${o.status} response type: ${o.responseType}`))})),o.addEventListener("error",(()=>{i(new Error("error"))})),o.addEventListener("abort",(()=>{i(new Error("aborted"))})),null===t?o.open("GET",e,!0):o.open("POST",e,!0),o.responseType="json",o.timeout=s,o.ontimeout=()=>{i(new Error("Timeout "+s+"ms "+e))},o.send(t)}))}static post(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return this.absCall(e,JSON.stringify(t),n,s)}static fetch(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.absCall(e,null,t,n)}}class ge extends ${static LANGUAGE_CACHE=new Map;static CACHE=new Map;static LATEST_CACHE_KEY=0;static DEFAULT_LANGUAGE="EN";static consentLanguages=new q;static baseUrl_;static set baseUrl(e){if(/^https?:\/\/vendorlist\.consensu\.org\//.test(e))throw new G("Invalid baseUrl! You may not pull directly from vendorlist.consensu.org and must provide your own cache");e.length>0&&"/"!==e[e.length-1]&&(e+="/"),this.baseUrl_=e}static get baseUrl(){return this.baseUrl_}static latestFilename="vendor-list.json";static versionedFilename="archives/vendor-list-v[VERSION].json";static languageFilename="purposes-[LANG].json";readyPromise;gvlSpecificationVersion;vendorListVersion;tcfPolicyVersion;lastUpdated;purposes;specialPurposes;features;specialFeatures;isReady_=!1;vendors_;vendorIds;fullVendorList;byPurposeVendorMap;bySpecialPurposeVendorMap;byFeatureVendorMap;bySpecialFeatureVendorMap;stacks;lang_;isLatest=!1;constructor(e){super();let t=ge.baseUrl;if(this.lang_=ge.DEFAULT_LANGUAGE,this.isVendorList(e))this.populate(e),this.readyPromise=Promise.resolve();else{if(!t)throw new G("must specify GVL.baseUrl before loading GVL json");if(e>0){const n=e;ge.CACHE.has(n)?(this.populate(ge.CACHE.get(n)),this.readyPromise=Promise.resolve()):(t+=ge.versionedFilename.replace("[VERSION]",String(n)),this.readyPromise=this.fetchJson(t))}else ge.CACHE.has(ge.LATEST_CACHE_KEY)?(this.populate(ge.CACHE.get(ge.LATEST_CACHE_KEY)),this.readyPromise=Promise.resolve()):(this.isLatest=!0,this.readyPromise=this.fetchJson(t+ge.latestFilename))}}static emptyLanguageCache(e){let t=!1;return void 0===e&&ge.LANGUAGE_CACHE.size>0?(ge.LANGUAGE_CACHE=new Map,t=!0):"string"==typeof e&&this.consentLanguages.has(e.toUpperCase())&&(ge.LANGUAGE_CACHE.delete(e.toUpperCase()),t=!0),t}static emptyCache(e){let t=!1;return Number.isInteger(e)&&e>=0?(ge.CACHE.delete(e),t=!0):void 0===e&&(ge.CACHE=new Map,t=!0),t}cacheLanguage(){ge.LANGUAGE_CACHE.has(this.lang_)||ge.LANGUAGE_CACHE.set(this.lang_,{purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks})}async fetchJson(e){try{this.populate(await he.fetch(e))}catch(e){throw new G(e.message)}}getJson(){return JSON.parse(JSON.stringify({gvlSpecificationVersion:this.gvlSpecificationVersion,vendorListVersion:this.vendorListVersion,tcfPolicyVersion:this.tcfPolicyVersion,lastUpdated:this.lastUpdated,purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,vendors:this.fullVendorList}))}async changeLanguage(e){const t=e.toUpperCase();if(!ge.consentLanguages.has(t))throw new G(`unsupported language ${e}`);if(t!==this.lang_)if(this.lang_=t,ge.LANGUAGE_CACHE.has(t)){const e=ge.LANGUAGE_CACHE.get(t);for(const t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}else{const t=ge.baseUrl+ge.languageFilename.replace("[LANG]",e);try{await this.fetchJson(t),this.cacheLanguage()}catch(e){throw new G("unable to load language: "+e.message)}}}get language(){return this.lang_}isVendorList(e){return void 0!==e&&void 0!==e.vendors}populate(e){this.purposes=e.purposes,this.specialPurposes=e.specialPurposes,this.features=e.features,this.specialFeatures=e.specialFeatures,this.stacks=e.stacks,this.isVendorList(e)&&(this.gvlSpecificationVersion=e.gvlSpecificationVersion,this.tcfPolicyVersion=e.tcfPolicyVersion,this.vendorListVersion=e.vendorListVersion,this.lastUpdated=e.lastUpdated,"string"==typeof this.lastUpdated&&(this.lastUpdated=new Date(this.lastUpdated)),this.vendors_=e.vendors,this.fullVendorList=e.vendors,this.mapVendors(),this.isReady_=!0,this.isLatest&&ge.CACHE.set(ge.LATEST_CACHE_KEY,this.getJson()),ge.CACHE.has(this.vendorListVersion)||ge.CACHE.set(this.vendorListVersion,this.getJson())),this.cacheLanguage()}mapVendors(e){this.byPurposeVendorMap={},this.bySpecialPurposeVendorMap={},this.byFeatureVendorMap={},this.bySpecialFeatureVendorMap={},Object.keys(this.purposes).forEach((e=>{this.byPurposeVendorMap[e]={legInt:new Set,consent:new Set,flexible:new Set}})),Object.keys(this.specialPurposes).forEach((e=>{this.bySpecialPurposeVendorMap[e]=new Set})),Object.keys(this.features).forEach((e=>{this.byFeatureVendorMap[e]=new Set})),Object.keys(this.specialFeatures).forEach((e=>{this.bySpecialFeatureVendorMap[e]=new Set})),Array.isArray(e)||(e=Object.keys(this.fullVendorList).map((e=>+e))),this.vendorIds=new Set(e),this.vendors_=e.reduce(((e,t)=>{const n=this.vendors_[String(t)];return n&&void 0===n.deletedDate&&(n.purposes.forEach((e=>{this.byPurposeVendorMap[String(e)].consent.add(t)})),n.specialPurposes.forEach((e=>{this.bySpecialPurposeVendorMap[String(e)].add(t)})),n.legIntPurposes.forEach((e=>{this.byPurposeVendorMap[String(e)].legInt.add(t)})),n.flexiblePurposes&&n.flexiblePurposes.forEach((e=>{this.byPurposeVendorMap[String(e)].flexible.add(t)})),n.features.forEach((e=>{this.byFeatureVendorMap[String(e)].add(t)})),n.specialFeatures.forEach((e=>{this.bySpecialFeatureVendorMap[String(e)].add(t)})),e[t]=n),e}),{})}getFilteredVendors(e,t,n,s){const r=e.charAt(0).toUpperCase()+e.slice(1);let i;const o={};return i="purpose"===e&&n?this["by"+r+"VendorMap"][String(t)][n]:this["by"+(s?"Special":"")+r+"VendorMap"][String(t)],i.forEach((e=>{o[String(e)]=this.vendors[String(e)]})),o}getVendorsWithConsentPurpose(e){return this.getFilteredVendors("purpose",e,"consent")}getVendorsWithLegIntPurpose(e){return this.getFilteredVendors("purpose",e,"legInt")}getVendorsWithFlexiblePurpose(e){return this.getFilteredVendors("purpose",e,"flexible")}getVendorsWithSpecialPurpose(e){return this.getFilteredVendors("purpose",e,void 0,!0)}getVendorsWithFeature(e){return this.getFilteredVendors("feature",e)}getVendorsWithSpecialFeature(e){return this.getFilteredVendors("feature",e,void 0,!0)}get vendors(){return this.vendors_}narrowVendorsTo(e){this.mapVendors(e)}get isReady(){return this.isReady_}clone(){const e=new ge(this.getJson());return this.lang_!==ge.DEFAULT_LANGUAGE&&e.changeLanguage(this.lang_),e}static isInstanceOf(e){return"object"==typeof e&&"function"==typeof e.narrowVendorsTo}}class ve extends ${static consentLanguages=ge.consentLanguages;isServiceSpecific_=!1;supportOOB_=!0;useNonStandardStacks_=!1;purposeOneTreatment_=!1;publisherCountryCode_="AA";version_=2;consentScreen_=0;policyVersion_=2;consentLanguage_="EN";cmpId_=0;cmpVersion_=0;vendorListVersion_=0;numCustomPurposes_=0;gvl_;created;lastUpdated;specialFeatureOptins=new Z;purposeConsents=new Z;purposeLegitimateInterests=new Z;publisherConsents=new Z;publisherLegitimateInterests=new Z;publisherCustomConsents=new Z;publisherCustomLegitimateInterests=new Z;customPurposes;vendorConsents=new Z;vendorLegitimateInterests=new Z;vendorsDisclosed=new Z;vendorsAllowed=new Z;publisherRestrictions=new Y;constructor(e){super(),e&&(this.gvl=e),this.updated()}set gvl(e){ge.isInstanceOf(e)||(e=new ge(e)),this.gvl_=e,this.publisherRestrictions.gvl=e}get gvl(){return this.gvl_}set cmpId(e){if(e=Number(e),!(Number.isInteger(e)&&e>1))throw new z("cmpId",e);this.cmpId_=e}get cmpId(){return this.cmpId_}set cmpVersion(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new z("cmpVersion",e);this.cmpVersion_=e}get cmpVersion(){return this.cmpVersion_}set consentScreen(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new z("consentScreen",e);this.consentScreen_=e}get consentScreen(){return this.consentScreen_}set consentLanguage(e){this.consentLanguage_=e}get consentLanguage(){return this.consentLanguage_}set publisherCountryCode(e){if(!/^([A-z]){2}$/.test(e))throw new z("publisherCountryCode",e);this.publisherCountryCode_=e.toUpperCase()}get publisherCountryCode(){return this.publisherCountryCode_}set vendorListVersion(e){if((e=Number(e)>>0)<0)throw new z("vendorListVersion",e);this.vendorListVersion_=e}get vendorListVersion(){return this.gvl?this.gvl.vendorListVersion:this.vendorListVersion_}set policyVersion(e){if(this.policyVersion_=parseInt(e,10),this.policyVersion_<0)throw new z("policyVersion",e)}get policyVersion(){return this.gvl?this.gvl.tcfPolicyVersion:this.policyVersion_}set version(e){this.version_=parseInt(e,10)}get version(){return this.version_}set isServiceSpecific(e){this.isServiceSpecific_=e}get isServiceSpecific(){return this.isServiceSpecific_}set useNonStandardStacks(e){this.useNonStandardStacks_=e}get useNonStandardStacks(){return this.useNonStandardStacks_}set supportOOB(e){this.supportOOB_=e}get supportOOB(){return this.supportOOB_}set purposeOneTreatment(e){this.purposeOneTreatment_=e}get purposeOneTreatment(){return this.purposeOneTreatment_}setAllVendorConsents(){this.vendorConsents.set(this.gvl.vendors)}unsetAllVendorConsents(){this.vendorConsents.empty()}setAllVendorsDisclosed(){this.vendorsDisclosed.set(this.gvl.vendors)}unsetAllVendorsDisclosed(){this.vendorsDisclosed.empty()}setAllVendorsAllowed(){this.vendorsAllowed.set(this.gvl.vendors)}unsetAllVendorsAllowed(){this.vendorsAllowed.empty()}setAllVendorLegitimateInterests(){this.vendorLegitimateInterests.set(this.gvl.vendors)}unsetAllVendorLegitimateInterests(){this.vendorLegitimateInterests.empty()}setAllPurposeConsents(){this.purposeConsents.set(this.gvl.purposes)}unsetAllPurposeConsents(){this.purposeConsents.empty()}setAllPurposeLegitimateInterests(){this.purposeLegitimateInterests.set(this.gvl.purposes)}unsetAllPurposeLegitimateInterests(){this.purposeLegitimateInterests.empty()}setAllSpecialFeatureOptins(){this.specialFeatureOptins.set(this.gvl.specialFeatures)}unsetAllSpecialFeatureOptins(){this.specialFeatureOptins.empty()}setAll(){this.setAllVendorConsents(),this.setAllPurposeLegitimateInterests(),this.setAllSpecialFeatureOptins(),this.setAllPurposeConsents(),this.setAllVendorLegitimateInterests()}unsetAll(){this.unsetAllVendorConsents(),this.unsetAllPurposeLegitimateInterests(),this.unsetAllSpecialFeatureOptins(),this.unsetAllPurposeConsents(),this.unsetAllVendorLegitimateInterests()}get numCustomPurposes(){let e=this.numCustomPurposes_;if("object"==typeof this.customPurposes){const t=Object.keys(this.customPurposes).sort(((e,t)=>Number(e)-Number(t)));e=parseInt(t.pop(),10)}return e}set numCustomPurposes(e){if(this.numCustomPurposes_=parseInt(e,10),this.numCustomPurposes_<0)throw new z("numCustomPurposes",e)}updated(){const e=new Date,t=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()));this.created=t,this.lastUpdated=t}}class me{static encode(e,t){let n,s="";return e=pe.process(e,t),n=Array.isArray(t?.segments)?t.segments:new ue(e,t)[""+e.version],n.forEach(((t,r)=>{let i="";rt&&(t=s)}return t/100}function at(e,t){if(void 0===t&&(t={}),!e)return null;var n=0,s=1,r=ot(t);return 1===r||(Object.values(t).length&&r<1&&(n=r,s=1-r),Object.keys(e).sort().forEach((function(r){var i=e[r];t[r]={min:Math.trunc(100*n),max:Math.trunc(100*(n+i*s))},n+=i*s}))),t}function ct(){return t(this,void 0,void 0,(function(){var e,t,r,i,o,a,c,l,d,p,h;return n(this,(function(n){switch(n.label){case 0:return e="latest",[4,B()];case 1:return t=n.sent(),r=t.siteInfo,i=t.bundleData,o="BT_BUNDLE_VERSION_"+r.websiteID,a="BT_DIGEST_VERSION_"+r.websiteID,!st[r.websiteID]&&(null==i?void 0:i.bundles)&&(st[r.websiteID]=i),c=function(e,t,n){if(void 0===n&&(n="latest"),!e)return null;if(!t||"object"!=typeof t||Object.keys(t).length<=0)return null;var s={},r=t[e],i=t[0],o=t.global;if((null==r?void 0:r.bundles)&&(s=at(r.bundles)),(null==i?void 0:i.bundles)&&(s=at(i.bundles,s)),(null==o?void 0:o.bundles)&&(s=at(o.bundles,s)),Object.keys(s).length<=0)return null;var a=ot(s);return a<1&&(s[n]={min:Math.trunc(100*a),max:100}),s}(r.websiteID,st,e),window.__bt_tag_d&&(window.__bt_tag_d.probabilities=c),!c||Object.keys(c).length<=0?[2,void 0]:(l=st[r.websiteID]||st[0]||st.global)?(d=l.digest,s.localStorage.getItem(a)!=String(d)&&(s.localStorage.setItem(a,String(d)),s.localStorage.removeItem(o)),(p=s.localStorage.getItem(o))||(h=u(100),p=function(e,t){if("number"!=typeof e||e<0||e>100)return null;if(!t||"object"!=typeof t)return null;for(var n=Object.keys(t),s=0;se)return r}return null}(h,c)||e,s.localStorage.setItem(o,p)),[2,p===e?void 0:p]):[2]}}))}))}st={"global":{"digest":5207281595842560,"bundles":{"5079025148231680":0.1,"5119490048393216":0.1,"5152280110432256":0.1}}};var lt=function(){function t(e,t,n,s,r,i){void 0===e&&(e={enabled:!1,script_loading_mode:"inject_from_tag_script"}),this.rlinkSettings=e,this.scriptSrc=t,this.recoveryScriptSrc=n,this.shouldLoadRecoveryScript=s,this.insertScript=r,this.isAAEnabled=i}return t.prototype.load=function(){var t=this;if(this.shouldLoadRLinkScript()){this.shouldLoadRecoveryScriptFromRLink()&&this.setRecoveryScriptLoadFunction(),this.cacheRLinkSettings(),this.insertScript(this.scriptSrc,"module");try{if(d(1)){Ke("rlink_script_injecting");setTimeout((function(){document.querySelector("script[src='"+t.scriptSrc+"']")?Ke("rlink_script_injected"):Ke("rlink_script_not_injected",e({},window.__bt_intrnl.aaDetectionResults)),window.__bt_rlink_already_invoked&&Ke("rlink_script_loaded")}),1e3)}}catch(e){}window.__bt_rlink_loaded_from_tag=!0}},t.prototype.shouldLoadRecoveryScriptFromRLink=function(){return this.shouldLoadRLinkScript()&&this.shouldLoadRecoveryScript&&this.isAAEnabled&&this.rlinkSettings.allow_render_to_aa_users},t.prototype.shouldLoadRLinkScript=function(){return this.rlinkSettings.enabled&&"inject_from_tag_script"===this.rlinkSettings.script_loading_mode},t.prototype.setRecoveryScriptLoadFunction=function(){var e=this;window.__bt_recovery=function(){return e.insertScript(e.recoveryScriptSrc)}},t.prototype.cacheRLinkSettings=function(){window.__bt_tag_am={settings:this.rlinkSettings}},t}();function ut(){return t(this,void 0,void 0,(function(){return n(this,(function(e){return[2,new Promise((function(e){var t=tt("timing.ABDetection"),n="BT_AA_DETECTION",r=JSON.parse(s.localStorage.getItem(n));r&&r.ab&&r.acceptable&&(t({cached:!0}),e(r)),Promise.all([b(),w(),y()]).then((function(i){var o={ab:i[0],acceptable:i[1],nlf:i[2]};s.localStorage.setItem(n,JSON.stringify(o)),window.__bt_intrnl.aaDetectionResults=o,!(r&&r.ab&&r.acceptable)||o.ab&&o.acceptable||(s.__bt_intrnl.stopFlag=!0),t({cached:!1}),e(o)}))}))]}))}))}function dt(e,t){if(void 0===t&&(t="text/javascript"),e){var n=document.createElement("script");n.type=t,n.async=!0,n.src=e,n.crossOrigin="anonymous",(window.document.head||window.document.body||window.document.documentElement).appendChild(n)}}function pt(e){(s.location.href.indexOf("bt_debug=true")>=0||"true"==s.localStorage.getItem("bt_debug"))&&(e.contentEnabled="true"==s.localStorage.getItem("forceContent")||e.contentEnabled,e.mobileContentEnabled="true"==s.localStorage.getItem("forceMobileContent")||e.mobileContentEnabled)}function ht(e){var t=e.eventName,n=e.payload||{bubbles:!1,cancelable:!1,detail:void 0};if(window.CustomEvent)try{var s=new window.CustomEvent(t,n);return void window.dispatchEvent(s)}catch(e){}var r=document.createEvent("CustomEvent");r.initCustomEvent(t,n.bubbles,n.cancelable,n.detail),window.dispatchEvent(r)}s.__bt_intrnl=s.__bt_intrnl||{traceID:k.traceID,pvSent:{},stopFlag:!1,timings:et,aaDetectionResults:null,recoveryUserAttr:null,pageURL:o.toString(),tcData:void 0},window.__bt_intrnl=s.__bt_intrnl;try{!function(){var e,r;t(this,void 0,void 0,(function(){var t,o,l,u,h,g,v,m,f,b,w,y;return n(this,(function(n){switch(n.label){case 0:return function(){var e;nt("timing.navigationStart",{timestamp:Xe},{severity:1}),nt("timing.tagScriptLoaded",{eventDurationMS:Math.round(null!==(e=null==Ye?void 0:Ye.duration)&&void 0!==e?e:0),timestamp:Qe},{severity:1})}(),[4,Promise.all([ut(),B()]).catch((function(){d(1)&&Ke("rlink.btTagDetectionError",void 0,{severity:4})}))];case 1:return t=n.sent(),o=t[0],l=t[1],u=l.siteInfo,h=l.checksum,g=l.rlSettings,ht({eventName:"BTAADetection",payload:{detail:o}}),window.__bt_already_invoked||!u.websiteID?[2]:(window.__bt_already_invoked=!0,it(I),o.nlf?(pt(u),window.disableUponit||!u.contentEnabled&&!u.mobileContentEnabled?[3,3]:[4,ct().catch((function(){d(1)&&Ke("rlink.btTagPickBundleVersionError",void 0,{severity:4})}))]):[3,4]);case 2:m=n.sent(),v=!0,n.label=3;case 3:return[3,6];case 4:return o.ab?window.disableUponit?[3,6]:(pt(u),u.contentEnabled&&(!(f="function"==typeof window.bt_isMobileCustom?window.bt_isMobileCustom():/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(navigator.userAgent||navigator.vendor||window.opera)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test((navigator.userAgent||navigator.vendor||window.opera).substr(0,4)))||f&&u.mobileContentEnabled)&&o.acceptable?[4,ct().catch((function(){d(1)&&Ke("rlink.btTagPickBundleVersionError",void 0,{severity:4})}))]:[3,6]):[3,6];case 5:m=n.sent(),v=!0,n.label=6;case 6:return(null===(e=s.__bt_intrnl.pvSent)||void 0===e?void 0:e[u.websiteID])||(null===(r=a("BT_pvSent"))||void 0===r?void 0:r[u.websiteID])||(s.__bt_intrnl.pvSent=s.__bt_intrnl.pvSent||{},s.__bt_intrnl.pvSent[u.websiteID]=!0,c("BT_pvSent",s.__bt_intrnl.pvSent),qe({siteInfo:u,checksum:h},o.ab,o.acceptable,o.nlf,m).catch((function(){d(1)&&Ke("rlink.btTagReportPV",void 0,{severity:4})})),function(){try{history.pushState=(e=history.pushState,function(){var t=e.apply(this,arguments);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationChange")),t}),history.replaceState=function(e){return function(){var t=e.apply(this,arguments);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationChange")),t}}(history.replaceState),window.addEventListener("popstate",(function(){window.dispatchEvent(new Event("locationChange"))}))}catch(e){}var e}(),s.addEventListener("locationChange",(function(){var e=i();e.search="";var t=e.toString().split("#")[0];s.__bt_intrnl.pageURL.split("#")[0]!==t&&(s.__bt_intrnl.pageURL=e.toString(),V=R(8,10),s.__bt_intrnl.traceID=V,c("BT_traceID",V),k={traceID:V,sessionID:P},qe({siteInfo:u,checksum:h},o.ab,o.acceptable,o.nlf,m,!0).catch((function(){d(1)&&Ke("rlink.btTagReportPVLocationChange",void 0,{severity:4})})))}))),b=function(e,t,n,s){var r=new URL("https://"+e);return r.pathname="recovery",r.searchParams.append("w",t),s&&r.searchParams.append("b",s),n&&n.split("&").forEach((function(e){var t=e.split("=");2==t.length&&t[0]&&t[1]&&r.searchParams.append(t[0],t[1])})),r.searchParams.append("upapi","true"),r.toString()}(E,u.websiteID,"",m),(w=new lt(g,A.script,b,v,dt,o.acceptable)).load(),!v||w.shouldLoadRecoveryScriptFromRLink()?[3,10]:(_=I,p.includes(_)?[3,8]:[4,Ie(!1)]);case 7:return((y=n.sent())||null===y)&&dt(b),[3,9];case 8:dt(b),n.label=9;case 9:return[3,11];case 10:try{ht({eventName:"AcceptableAdsInit",payload:{detail:!1}}),ht({eventName:"uponitInit",payload:{detail:!1}})}catch(e){d(1)&&Ke("rlink.btTagWhenShouldNotLoadScriptError",{message:null==e?void 0:e.message},{severity:4})}n.label=11;case 11:return[2]}var _}))}))}()}catch(e){d(1)&&Ke("rlink.btTagInitError",{message:null==e?void 0:e.message},{severity:4})}}();